package com.tywj.navigation.route

import com.tywj.lib.route.RouteNavigation
import com.tywj.navigation.map.NavigationSelectedAddress

object NavigationRoute {

    const val NAVIGATION_SELECTED_ADDRESS = "/navigation/selectedAddress"

    const val NAVIGATION_SERVICE = "/navigation/service"

    //申请线路
    const val NAVIGATION_APPLY_COURSE = "/navigation/applyCourse"

    //申请记录
    const val NAVIGATION_APPLY_HISTORY = "/navigation/applyHistory"


    //选择城市
    const val NAVIGATION_SELECTED_CITY = "/navigation/selectedCity"


    /**
     * 选择地址
     */
    fun toSelectAddress(content: String, fromPath: Int): RouteNavigation {
        return RouteNavigation(NAVIGATION_SELECTED_ADDRESS)
            .param(NavigationSelectedAddress.PARAM_CONTENT, content)
            .param(NavigationSelectedAddress.PARAM_FROM_PATH, fromPath)
    }

    /**
     * 跳转至申请线路
     *
     */
    fun toApplyCourse(): RouteNavigation {
        return RouteNavigation(NAVIGATION_APPLY_COURSE)
    }

    /**
     * 跳转至申请线路
     *
     */
    fun toApplyHistory(): RouteNavigation {
        return RouteNavigation(NAVIGATION_APPLY_HISTORY)
    }


    /**
     * 跳转选择城市
     */
    fun toSelectedCity(): RouteNavigation {
        return RouteNavigation(NAVIGATION_SELECTED_CITY)
    }
}